app.service('addHouseService', function ($http) {

    /**
     * 房屋保存
     * @param houseEntity
     * @returns {*}
     */
    this.save = function (houseEntity) {
       return $http.post("/house/save" , houseEntity)
    }

    /**
     * 修改
     * @param houseEntity
     * @returns {*}
     */
    this.update = function (houseEntity) {
        return $http.post("/house/update",houseEntity)
    }

    /**
     * 数据修改回显
     */
    this.findOne = function (id) {
        console.log(id)
         return $http.get("/house/findOne?id="+id)
    }
})